Unicorn redis config fix 3

jamesperet 9 years ago
parent
commit
c93247480d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      config/unicorn.rb

+ 1 - 2
config/unicorn.rb

@@ -29,8 +29,7 @@ after_fork do |server, worker|
29 29
   # If you are using Redis but not Resque, change this
30 30
   if defined?(Resque)
31 31
     uri = URI.parse(ENV["REDISTOGO_URL"])
32
-    redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
33
-    Resque.redis = redis
32
+    Resque.redis = uri
34 33
     Rails.logger.info('Connected to Redis')
35 34
   end
36 35
 end